
import { RouterRow } from '@/router/module/user'
// @ts-ignore
const modules = import.meta.globEager('./module/**/*.ts');

const routeModuleList:Array<RouterRow> = [];

Object.keys(modules).forEach((key) => {
  const mod = modules[key].default || {};
  const modList = Array.isArray(mod) ? [...mod] : [mod];
  routeModuleList.push(...modList);
});
console.log(routeModuleList)
export default routeModuleList
